<?php
	class binhluanbs
	{
		public $MaBinhLuan = 0;
		public $MaBaiViet = 0;
		public $MaSanPham = 0;
		public $MaNguoiDung = 0;
		public $NoiDungBinhLuan = "";
		public $ThoiGianBinhLuan = "0000-00-00";
		
		public function Add()
		{
			$db = new binhluandb();
			return $db->Add($this->MaBaiViet, $this->MaNguoiDung, $this->NoiDungBinhLuan, $this->ThoiGianBinhLuan);
		}
		public function Add_SP()
		{
			$db = new binhluandb();
			return $db->Add_SP($this->MaSanPham, $this->MaNguoiDung, $this->NoiDungBinhLuan, $this->ThoiGianBinhLuan);
		}
		public function Delete()
		{
			$db = new binhluandb();
			return $db->Delete($this->MaBinhLuan);
		}
		
		public function GetList()
		{
			$db = new binhluandb();
			return $db->GetList($this->MaBaiViet);
		}
		public function GetList_SP()
		{
			$db = new binhluandb();
			return $db->GetList_SP($this->MaSanPham);
		}
	}
?>